<div class="main-title no-border">
	<h1>Approve Course Attendance</h1>
</div>
<div class="grid_16">
	<?php
	$this->widget('zii.widgets.grid.CGridView', array(
		'id' => 'course-grid',
		'dataProvider' => $dataProvider,
		'filter' => $model,
		'columns' => array(
//			'id',
			'name',
			array(
				'name' => 'course_type_id',
				'value' => 'GxHtml::valueEx($data->courseType)',
				'filter' => GxHtml::listDataEx(CourseType::model()->findAllAttributes(null, true)),
			),
//			'short_description',
//			'full_description',
			'course_code',
			'cpd_hours',
//			'duration',
			'start_time',
			'end_time',
			'location',
//			'seats',
			array(
				'header' => 'Number of attended',
				'name' => 'attend_cnt',
			),
			'price',
			'registration_close_date',
			array(
				'class' => 'CButtonColumn',
				'template' => '{attendence}',
				'buttons' => array(
					'attendence' => array(
						'label' => 'Details',
						'url' => "CHtml::normalizeUrl(array('/cpd/course/approveAttendence','id'=>\$data->id))",
						'options' => array(
							'class' => 'link-button',
							'width' => 100
						)
					)
				)
			),
		),
	));
	?>
</div>